<div class="menubar" xmlns="http://www.w3.org/1999/xhtml"
	 xmlns:ui="http://java.sun.com/jsf/facelets"
	 xmlns:s="http://jboss.com/products/seam/taglib"
	 xmlns:f="http://java.sun.com/jsf/core"
	 xmlns:h="http://java.sun.com/jsf/html">
	 

	  <ul>
	    <li class="browse_category">Navigate:</li>
	    <li id="page_demo"><a href="#" accesskey="i">Demo</a></li>
	    <li id="page_home"><s:link view="/home.xtml" accesskey="h" propagation="none">Home</s:link></li>
	    <s:fragment id="menu_anonymous" rendered="#{identity.loggedIn}">
	   		 <li id="page_console"><s:link view="/console.xhtml" accesskey="c" propagation="none">Console</s:link></li>
  		</s:fragment>
  		<s:fragment rendered="#{s:hasRole('ADMIN')}">
  		 	<li id="page_admin"><s:link view="/admin.xhtml" accesskey="a" propagation="none">Admin</s:link></li>
  		</s:fragment>
	    <li id="page_services"><a href="#" accesskey="s">Services</a></li>
	  </ul>
	  
	  <script type="text/javascript" language="JavaScript">
	        function setClass(id, className) {
	            var obj = document.getElementById(id);
	            if (obj != null) {
	                obj.className = className;
	            }
	        }
	        setClass("page_" + "#{page}", "active");
	   </script>

</div>